﻿
CREATE TABLE [dbo].[surveyMemberData](
	[nodeId] [int] NOT NULL,
	[companyName] [nvarchar](200) NOT NULL,
	[fullName] [nvarchar](50) NOT NULL,
	[memberDataId] [int] IDENTITY(1,1) NOT NULL,
 CONSTRAINT [PK_surveyMemberData] PRIMARY KEY CLUSTERED 
(
	[memberDataId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[surveyMemberData]  WITH CHECK ADD  CONSTRAINT [FK_surveyMemberData_cmsMember] FOREIGN KEY([nodeId])
REFERENCES [dbo].[cmsMember] ([nodeId])
GO

ALTER TABLE [dbo].[surveyMemberData] CHECK CONSTRAINT [FK_surveyMemberData_cmsMember]
GO


